package javabase.schoolwork.day6_11;

/**
 * @author fance
 * @date 18-6-11 下午5:59
 */
class Father {
    public static void staticTest() {
        System.out.println("父类 静态方法");
    }
    public  void test() {
        System.out.println("父类 fei静态方法");
    }
}
class Son extends Father {
    public static void staticTest() {
        System.out.println("子类 静态方法");
    }

    public  void test() {
        System.out.println("子类 fei静态方法");
    }
}
public class Test9 {
    public static void main(String[] args) {
        Father base = new Son();
        base.test();
        base.staticTest();
    }
}
